<template>
  <div class="dashboard-container">
    <div class="banner">
      <div class="banner-left">
        <img src="	http://www-wms-java.itheima.net/img/dashboard-banner-left@2x.5afd2949.png" alt="" class="left">
        <img src="	http://www-wms-java.itheima.net/img/dashboard-banner-right@2x.28195570.png" alt="" class="right">
        <img src="http://www-wms-java.itheima.net/img/avatar@2x.4f4a758f.png" alt="" class="photo">
        <p class="user-title">仓储管理员</p>
        <p class="sentence">我不是为了输赢，我就是认真！</p>
        <p class="luoyonghao">———罗永浩</p>
        <div class="location">北京总仓</div>
        <div class="undoneInfo">
          <div class="undone-title">待办信息</div>
          <div class="undone-form">
            <div class="el-row">
              <el-row :gutter="20">
                <el-col :span="8">
                  <div class="block-item">
                    <div class="top">
                      <div class="icon">
                        <i class="iconfont el-icon-bianjiwenjian" />
                      </div>
                      <div class="title">入库单</div>
                    </div>
                    <div class="bottom">新增3 待审核3</div>
                  </div>
                </el-col>
                <el-col :span="8">
                  <div class="block-item">
                    <div class="top">
                      <div class="icon" style="background: #ffb200">
                        <i class="iconfont el-icon-chukudan" />
                      </div>
                      <div class="title">出库单</div>
                    </div>
                    <div class="bottom">新增3 待审核3</div>
                  </div>
                </el-col>
                <el-col :span="8">
                  <div class="block-item">
                    <div class="top">
                      <div class="icon" style="background: #ff7100">
                        <i class="iconfont el-icon-navicon-pdd" />
                      </div>
                      <div class="title">盘点单</div>
                    </div>
                    <div class="bottom">新增3 待审核3</div>
                  </div>
                </el-col>
              </el-row>

            </div>
          </div>
        </div>
      </div>
      <div class="banner-right">
        <div class="notice">通知/公告</div>
        <div class="item">
          <div class="item-title">紧急盘点通知</div>
          <div class="time">2020.12.30 18:23:14</div>
        </div>
        <div class="item">
          <div class="item-title">运维服务更新通知</div>
          <div class="time">2021.01.25 18:23:14</div>
        </div>
        <div class="item">
          <div class="item-title">客户入库变更通知</div>
          <div class="time">2021.01.26 18:23:14</div>
        </div>
        <div class="item">
          <div class="item-title">五一放假通知</div>
          <div class="time">2021.02.15 18:23:14</div>
        </div>
        <div class="item">
          <div class="item-title">品达物流系统对接通知</div>
          <div class="time">2021.3.25 18:23:14</div>
        </div>
      </div>
    </div>
    <div class="task">
      <taskNav />
    </div>
    <div class="message" />
    <div class="inventory">
      <div class="serviceCondition" />
      <div class="reservoir" />
    </div>
  </div>
</template>

<script>
import taskNav from './components/taskNav.vue'

export default {
  name: 'Dashboard',
  components: {
    taskNav
  }
}
</script>

<style lang="scss">
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
  height: 1603px;
}
.dashboard-container {

  .banner {
    display: flex;
    .banner-left {
      position: relative;
      width: 895.8px;
      height: 148px;
      background: linear-gradient(270deg,#ffc771,#ffa634);
      border-radius: 12px;
      .left {
        width: 166px;
        height: 148px;
      }
      .right {
      position: absolute;
      width: 426px;
      height: 148px;
      top: 0;
      right: 0;
      }
      .photo {
        position: absolute;
        top: 31px;
        left: 43px;
        height: 62px;
      }
      .user-title {
        position: absolute;
        left: 36px;
        bottom: 0px;
        font-size: 16px;
        font-weight: 500;
        color: #332929;
        line-height: 22px;
      }
      .sentence {
        position: absolute;
        font-weight: 500;
        color: #fff;
        line-height: 25px;
        top: 20px;
        left: 200px;
        font-size: 18px;
      }
      .luoyonghao {
        position: absolute;
        top: 66px;
        left: 400px;
        font-size: 16px;
        color: #fff;
      }
      .location {
        position: absolute;
        background-color: #f8f5f5;
        opacity: .79;
        border-radius: 6px;
        width: 147px;
        height: 40px;
        top: 20px;
        right: 20px;
        text-align: center;
        line-height: 40px;
      }
    }
    }
  .banner-right {
      width: 261px;
      height: 451px;
      background: #fff;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 30px;
      margin-left: 30px;
      .notice {
        font-size: 16px;
        font-weight: 600;
        color: #332929;
        line-height: 22px;

      }
      .item {
        display: flex;
        width: 200px;
        height: 60px;
        border-top: 1px solid #f5efee;
        margin-top: 15px;
        flex-direction: column;
        justify-content: center;
        justify-content:space-evenly;
        .item-title {
          width: 195px;
          height: 18px;
          font-size: 13px;
          font-weight: 400;
          color: #332929;
          line-height: 18px;
          margin-top: 15px;
        }
        .time {
          width: 115px;
          height: 17px;
          font-size: 12px;
          font-weight: 400;
          color: #887e7e;
          line-height: 17px;
          margin-top: 10px;
        }
      }
    }
  .undoneInfo {
      width: 895.8px;
      height: 282px;
      background-color: #fff;
      margin-top: 20px;
      box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
      border-radius: 12px;
      padding: 25px;
      .undone-title {
        font-size: 16px;
        font-weight: 600;
        color: #332929;
        line-height: 22px;
      }
      .undone-form {
        height: 186px;
        background-color: #fff;
        .block-item {
          position: relative;
          background-color: #fbf7f7;
          height: 186px;
          padding: 20px;
          margin-top: 20px;
          border-radius: 5px;
          .top {
          display: flex;
          vertical-align: center;
            .icon {
            width: 49px;
            height: 49px;
            background: #0076ff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            .iconfont {
              font-size: 32px;
              color: #f8f5f5;
            }
          }
            .title {
              height: 49px;
              font-weight: 500;
              color: #332929;
              line-height: 49px;
              margin-left: 15px;
            }
        }
          .bottom {
            position: absolute;
            left: 0px;
            bottom: 0px;
            padding: 20px;
          }
      }
    }
  }
}
.task {
  width: 100%;
  height: 188px;
  background-color: pink;
  margin-top: 20px;
  border-radius: 15px;
}
.message {
  width: 100%;
  height: 500px;
  background-color: pink;
  margin-top: 20px;
  border-radius: 15px;
}
.inventory {
  width: 100%;
  height: 354px;
  display: flex;
  margin-top: 20px;
  border-radius: 15px;
}
.serviceCondition {
  flex: 3;
  height: 354px;
  background-color: pink;
  border-radius: 15px;
}
.reservoir {
  flex: 7;
  height: 354px;
  background-color: pink;
  margin-left: 30px;
  border-radius: 15px;
}
</style>
